package com.solution.framework.util;

import java.io.Serializable;

public class TreeNode {
    private Boolean checked;
    private Serializable id;
    private String name;
    private Boolean open;
    private Serializable pId;
    private Boolean isParent;
    //    private String url;
    private String type;


    public TreeNode(Boolean checked, Serializable id, String name, Boolean open,
                    Serializable pId, Boolean isParent) {
        super();
        this.checked = checked;
        this.id = id;
        this.name = name;
        this.open = open;
        this.pId = pId;
        this.isParent = isParent;
    }

    public Boolean getChecked() {
        return checked;
    }

    public Serializable getId() {
        return id;
    }

    public Boolean getIsParent() {
        return isParent;
    }

    public String getName() {
        return name;
    }

    public Boolean getOpen() {
        return open;
    }

    public Serializable getpId() {
        return pId;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public TreeNode(Boolean checked, Integer id, String name, Boolean open,
                    Integer pId, Boolean isParent, String type) {
        super();
        this.checked = checked;
        this.id = id;
        this.name = name;
        this.open = open;
        this.pId = pId;
        this.isParent = isParent;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
